const express = require("express")

const app = express()

// 跨域
const cors = require("cors")
app.use(cors())

// 解析post请求 json
app.use(express.json())

// 路由
let userRouter = require("./router")
app.use("/", userRouter)

app.listen(4399, () => {
    console.log("启动成功 \n ---> http://localhost:4399/  \n --->http://127.0.0.1:4399")
})